package com.by.component.contract;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 合同签署记录(ContractSignRecord)表数据库实体类
 *
 * @author hanrongjun
 * @since 2024-03-18 15:45:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("contract_sign_record")
public class ContractSignRecord extends Model<ContractSignRecord> {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 合同id
     */
    private Long contractInfoId;
    /**
     * 场景类型
     */
    private Integer sceneType;
    /**
     * 场景id
     */
    private Long sceneId;
    /**
     * 已签署
     */
    private Integer signFlag;
    /**
     * 签署时间
     */
    private LocalDateTime signTime;
    /**
     * 合同文件id
     */
    private Long contractFileId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
